Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Scripting Additions Guide /
Chapter 2 - Scripting Addition Commands / Command Definitions
/


Beep

The Beep command plays the alert sound for the Macintosh. It is the only command provided by the Beep scripting addition.

SYNTAX
beep [ numberOfBeeps ]
PARAMETER
numberOfBeeps

The number of times to play the alert sound. If you omit numberOfBeeps, the alert sound is played once.
Class: Integer
Default Value: 1
RESULT
None

EXAMPLES
beep
beep 3
NOTES
The user can cancel a Beep command--for example, if the value of the numberOfBeeps parameter is large--by typing Command-period or pressing
the Esc key.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
18 DEC 1996